package com.spc.demo.controller;

import com.spc.demo.service.ExternalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1")
public class CommonController {
    @Autowired
    private ExternalService externalService;

    @GetMapping("action-one")
    public void actionOne(){
        externalService.actionOne();
    }

    @GetMapping("action-two")
    public void actionTwo(){
        externalService.actionTwo();
    }
}
